package moodish.comm;

import static org.junit.Assert.*;


import moodish.comm.ClientSideMessage.Type;

import org.junit.Test;

public class ClientSideMessageClassTest {

	@Test
	public void testGets() {
		
		String payLoad = "Ricardo";
		String sendersNickName = "Jacinto";
		Type type = ClientSideMessage.Type.CONNECTED;
		ClientSideMessageClass csm = new ClientSideMessageClass(payLoad,sendersNickName,type);
		
		String payLoad1 = csm.getPayload();
		String sendersNickName1 = csm.getSendersNickname();
		Type type1 = csm.getType();
		
		assertEquals(payLoad, payLoad1);
		assertEquals(sendersNickName, sendersNickName1);
		assertEquals(type, type1);
		
	}
	
}
